package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BusWaterStandardcategoryMapper;
import com.ruoyi.base.domain.BusWaterStandardcategory;
import com.ruoyi.base.service.IBusWaterStandardcategoryService;

/**
 * 水质标准基础Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-19
 */
@Service
public class BusWaterStandardcategoryServiceImpl implements IBusWaterStandardcategoryService 
{
    @Autowired
    private BusWaterStandardcategoryMapper busWaterStandardcategoryMapper;

    /**
     * 查询水质标准基础
     * 
     * @param id 水质标准基础主键
     * @return 水质标准基础
     */
    @Override
    public BusWaterStandardcategory selectBusWaterStandardcategoryById(String id)
    {
        return busWaterStandardcategoryMapper.selectBusWaterStandardcategoryById(id);
    }

    /**
     * 查询水质标准基础列表
     * 
     * @param busWaterStandardcategory 水质标准基础
     * @return 水质标准基础
     */
    @Override
    public List<BusWaterStandardcategory> selectBusWaterStandardcategoryList(BusWaterStandardcategory busWaterStandardcategory)
    {
        return busWaterStandardcategoryMapper.selectBusWaterStandardcategoryList(busWaterStandardcategory);
    }

    /**
     * 新增水质标准基础
     * 
     * @param busWaterStandardcategory 水质标准基础
     * @return 结果
     */
    @Override
    public int insertBusWaterStandardcategory(BusWaterStandardcategory busWaterStandardcategory)
    {
        return busWaterStandardcategoryMapper.insertBusWaterStandardcategory(busWaterStandardcategory);
    }

    /**
     * 修改水质标准基础
     * 
     * @param busWaterStandardcategory 水质标准基础
     * @return 结果
     */
    @Override
    public int updateBusWaterStandardcategory(BusWaterStandardcategory busWaterStandardcategory)
    {
        return busWaterStandardcategoryMapper.updateBusWaterStandardcategory(busWaterStandardcategory);
    }

    /**
     * 批量删除水质标准基础
     * 
     * @param ids 需要删除的水质标准基础主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterStandardcategoryByIds(String[] ids)
    {
        return busWaterStandardcategoryMapper.deleteBusWaterStandardcategoryByIds(ids);
    }

    /**
     * 删除水质标准基础信息
     * 
     * @param id 水质标准基础主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterStandardcategoryById(String id)
    {
        return busWaterStandardcategoryMapper.deleteBusWaterStandardcategoryById(id);
    }
}
